<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../../WEB-INF/templates/noFooterTemplate.xhtml">
            <ui:define name="content">
                <h:form id="viewAdminReportCandidateForm">
                    <p:growl id="growl"/>
                    <p:panel id="reportedCandidatesDatatable" styleClass="noBorder noPadding noMargin">
                        <p:dataTable  var="notification" value="#{adminReportCandidateBean.entityList}" rowKey="#{candidate.idCandidate}" filteredValue="#{adminReportCandidateBean.filteredEntitiesList}"
                                      paginator="true" rows="25"  
                                      paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                                      rowsPerPageTemplate="25,50,100">  
                            <p:column  filterBy="#{notification.user.candidate.name}" filterMatchMode="contains" sortBy="#{notification.user.candidate.name}" headerText="#{messages.Name}">  
                                <h:outputText value="#{notification.user.candidate.name}" />  
                            </p:column>  

                            <p:column filterBy="#{notification.user.candidate.lastName}" filterMatchMode="contains" sortBy="#{notification.user.candidate.lastName}" headerText="#{messages.LastName}">  
                                <h:outputText value="#{notification.user.candidate.lastName}" />  
                            </p:column>  

                            <p:column filterBy="#{notification.user.email}" filterMatchMode="contains" sortBy="#{notification.user.email}" headerText="#{messages.Email}">  
                                <h:outputText value="#{notification.user.email}" />  
                            </p:column>  

                            <p:column sortBy="#{notification.date}" headerText="#{messages.Date}">  
                                <h:outputText value="#{notification.date}">
                                    <f:convertDateTime pattern="d/M/yyyy - HH:mm"></f:convertDateTime>
                                </h:outputText>
                            </p:column> 
                            
                        </p:dataTable>  
                    </p:panel>
                    
                    
                </h:form>
               
            </ui:define>
        </ui:composition>

    </body>
</html>

